package se.mushroomwars.network.protocol;


/*
 * === OLD PROTOCOL =====
 * Header
 * ------------------
 * Length (2xBYTE)               ---
 * Name (PlayerID) (CHAR x 10)    I  = 13
 * PackageID  (BYTE)             ---
 * Data
 * ------------------
 */

/*
 * === NEW PROTOCOL =====
 * Header
 * ------------------
 * Length (2xBYTE)       //length of the package without the header-length
 * PackageID  (BYTE)     // id of the package
 * Object				 //data
 * ------------------
 */


/*
 * LOGIN
 * ========= PackageID ===== Data ========
 * C -> S   (LOGIN) 		(String)
 * S -> C   (OK)			(OkPackage)
 * 
 * LOBBY_MESSAGE
 * C -> S   (LOBBY_MESSAGE) (String)
 * S -> C   (LOBBY_MESSAGE) (String)
 */


public class Protocol {
	public static final short OK = 0;
	public static final short BAD_PACKAGE = 1;
	public static final short LOGIN = 2;
	public static final short ENTER_LOBBY = 3;
	public static final short LOBBY_MESSAGE = 4;
	public static final short KICK_PLAYER = 5;
	public static final short PLAYER_DISCONNECTED = 6;
	public static final short LOBBY = 7;
	
}
